Learn R Programming

irt (version 0.1.1)

[[,Itempool,numeric,missing-method: Subset Itempool objects

Description

Subset Itempool objects

Usage

# S4 method for Itempool,numeric,missing
[[(x, i, j, ...)

Arguments

x

An Itempool-class object from which to extract element(s) or in which to replace element(s).

i

indices specifying elements to extract or replace.

j

This will not be used in Itempool-class objects.

...

Additional parameters to be passed to the function.

Value

An Item-class or Testlet-class object.

Examples

Run this code
# NOT RUN {
item1 <- item(a = 1.12, b = -2.1, c = 0.28)
item2 <- item(a = 2, b = 3.2, c = 0.21)

ip1 <- c(item1, item2)
ip1[[1]]
# }

Run the code above in your browser using DataLab